<div id="$ID" class="$CSSClasses field" href="$CurrentLink">
	<div class="middleColumn">
		<% include TableListField_PageControls %>
		<table class="data">
			<thead>
				<tr>
					<th width="12">&nbsp;</th>
					<% if Markable %><th width="18">&nbsp;</th><% end_if %>
					<% control Headings %>
					<th class="$Name">
						<% if IsSortable %>
							<span class="sortTitle">
								<a href="$SortLink">$Title</a>
							</span>
							<span class="sortLink <% if SortBy %><% else %>sortLinkHidden<% end_if %>">
								<a href="$SortLink">
									<% if SortDirection = desc %>
									<img src="cms/images/bullet_arrow_up.png" alt="<% _t('SORTASC', 'Sort ascending') %>" />
									<% else %>
									<img src="cms/images/bullet_arrow_down.png" alt="<% _t('SORTDESC', 'Sort descending') %>" />
									<% end_if %>
								</a>
								&nbsp;
							</span>
						<% else %>
							$Title
						<% end_if %>
					</th>
					<% end_control %>
					<% control Actions %><th width="18">&nbsp;</th><% end_control %>
				</tr>
			</thead>
			<tfoot>
				<% if HasSummary %>
				<tr class="summary">
					<th width="12">&nbsp;</th>
					<% if Markable %><th width="18">&nbsp;</th><% end_if %>
					<td><i>$SummaryTitle</i></td>
					<% control SummaryFields %>
						<td<% if Function %> class="$Function"<% end_if %>>$SummaryValue</td>
					<% end_control %>
					<% control Actions %><td width="18">&nbsp;</td><% end_control %>
				</tr>
				<% end_if %>
				<% if Can(add) %>
				<tr>
					<td>&nbsp;</td>
					<% if Markable %><td width="18">&nbsp;</td><% end_if %>
					<td colspan="$ItemCount">
						<input type="hidden" id="{$id}_PopupHeight" value="$PopupHeight" disabled="disabled">
						<input type="hidden" id="{$id}_PopupWidth" value="$PopupWidth" disabled="disabled">
						<a class="popuplink addlink" href="$AddLink" alt="add"><img src="cms/images/add.gif" alt="<% _t('ADDITEM', 'add') %>" />
							<% sprintf(_t('ADDITEM', 'Add %s', PR_MEDIUM, 'Add [name]'),$Title) %>
						</a>
					</td>
					<% control Actions %><td width="18">&nbsp;</td><% end_control %>
				</tr>
				<% end_if %>
			</tfoot>
			<tbody>
				<% if Items %>
					<% control Items %>
						<tr id="record-$Parent.id-$ID"<% if HighlightClasses %> class="$HighlightClasses"<% end_if %>>
							<td>
								<a class="drag" href="$Parent.Link(order)" style="cursor: move;">
									<img src="sapphire/images/drag.gif" alt="" />
								</a>
							</td>
							<% if Markable %><td width="16" class="markingcheckbox">$MarkingCheckbox</td><% end_if %>
							<% control Fields %>
							<td class="field-$Title.HTMLATT $FirstLast $Name">$Value</td>
							<% end_control %>
							<% control Actions %>
								<td width="16">
									<% if IsAllowed %>
									<a class="$Class" href="$Link">
										<% if Icon %><img src="$Icon" alt="$Label" /><% else %>$Label<% end_if %>
									</a>
									<% else %>
										<span class="disabled">
											<% if IconDisabled %><img src="$IconDisabled" alt="$Label" /><% else %>$Label<% end_if %>
										</span>
									<% end_if %>
								</td>
							<% end_control %>
						</tr>
					<% end_control %>
				<% else %>
					<tr class="notfound">
						<td width="18">&nbsp;</td>
						<% if Markable %><td width="18">&nbsp;</td><% end_if %>
						<td colspan="$Headings.Count"><i><% _t('NOITEMSFOUND', 'No items found') %></i></td>
						<% control Actions %><td width="18">&nbsp;</td><% end_control %>
					</tr>
				<% end_if %>
			</tbody>
		</table>
		<div class="utility">
			<% if Can(export) %>
				<a href="$ExportLink" target="_blank"><% _t('CSVEXPORT', 'Export to CSV' ) %></a>
			<% end_if %>
		</div>
	</div>
</div>
